/*
 *  Entity.cpp
 *  SDLtut1
 *
 *  Created by Darryl DeWeese on 3/2/08.
 *  Copyright 2008 __MyCompanyName__. All rights reserved.
 *
 */

#include "Entity.h"

Entity::Entity() {}

Entity::Entity(Vec2d pos)
{
	this->pos = pos;
}

Entity::Entity(Vec2d pos, Vec2d vel, Vec2d accel)
{
	this->pos = pos;
	this->vel = vel;
	this->accel = accel;
}

void Entity::update()
{
	vel = vel + accel;
	pos = pos + vel;
}
